SRCS:=$(wildcard *.c)
OBJS:=$(patsubst %.c,%.o,$(SRCS))
CC:=gcc

%.o:%.c
	$(CC) -c $^ -o $@ -g

main:$(OBJS)
	$(CC) $^ -o $@ -lpthread -lcrypt

.PHONY:clean rebuild
clean:
	$(RM) $(OBJS) main
rebuild:clean main
